package com.ym.medical.domain.entity;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.ym.common.constant.BaseEntity;
import com.ym.base.enums.FlagEnum;
import com.ym.medical.enums.AskTypeEnum;
import com.ym.medical.enums.HandleStateEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Table;
import java.util.Date;

/**
 * 帮助反馈对象 feed_back
 *
 * @author ym
 * @date 2020-09-01
 */
@ApiModel("帮助反馈-实体")
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Table(name = "feed_back")
public class FeedBackEntity extends BaseEntity{

    private static final long serialVersionUID = 1L;

    /**
     * 用户标识
     */
    @ApiModelProperty("用户标识")
    private Long userId;

    /**
     * 问题类型（01其他）
     */
    @ApiModelProperty("问题类型（01其他）")
    @JsonSerialize(converter = AskTypeEnum.Covert.class)
    private String askType;

    /**
     * 手机号
     */
    @ApiModelProperty("手机号")
    private String phoneNo;

    /**
     * 反馈内容
     */
    @ApiModelProperty("反馈内容")
    private String backContent;

    /**
     * 反馈时间
     */
    @ApiModelProperty("反馈时间")
    private Date backTime;

    /**
     * 状态,01未处理02已处理
     */
    @ApiModelProperty("状态,01未处理02已处理")
    @JsonSerialize(converter = HandleStateEnum.Covert.class)
    private String state;

    /**
     * 是否删除
     */
    @ApiModelProperty("是否删除")
    @JsonSerialize(converter = FlagEnum.Covert.class)
    private String deleted;

}
